# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=py3-tappy
_pkgname=tap.py
pkgver=3.0
pkgrel=1
pkgdesc="Python3 Test Anything Protocol (TAP) tools"
url="https://github.com/python-tap/tappy"
arch="noarch"
license="BSD-2-Clause"
depends="python3 py3-setuptools"
makedepends="py3-babel"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/t/tap.py/tap.py-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-tappy" # Backwards compatibility
provides="py-tappy=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 -m tap
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="58b0928dd28ba525d9bb5edfab5606cb67af15e75a5f03d2648280d30377e2aa23b314ed41dba3b09b7dfa1aefead53674df43b6087e552b9aa937472838e7db  py3-tappy-3.0.tar.gz"
